package xyz.chenyongpeng.orderproviderdubbo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import xyz.chenyongpeng.entity.ZsCouponIncludeGoods;
import xyz.chenyongpeng.orderproviderdubbo.mapper.ZsCouponIncludeGoodsMapper;
import xyz.chenyongpeng.service.IZsCouponIncludeGoodsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * <p>
 * 优惠券包含的商品表 服务实现类
 * </p>
 *
 * @author chenyongpeng
 * @since 2018-12-10
 */
public class ZsCouponIncludeGoodsService extends ServiceImpl<ZsCouponIncludeGoodsMapper, ZsCouponIncludeGoods> implements IZsCouponIncludeGoodsService {

    @Autowired
    private ZsCouponIncludeGoodsMapper zsCouponIncludeGoodsMapper;

    @Override
    public List<ZsCouponIncludeGoods> getAllCoupons(List<String> goods_id) {
        return zsCouponIncludeGoodsMapper.getCouponIncludeGoods(goods_id);
    }
}
